using System;
using System.Runtime.Serialization;

namespace MWTools.Client.Common
{
    public class DataMappingAttribute : Attribute
    {
        public bool IsCustomField { get; set; }
        public bool IsRequired { get; set; }
        public int Length { get; set; }
        public DbType DbType { get; set; }
        public bool IsPrimaryKey { get; set; }
        public bool IsUnique { get; set; }
        public bool IsChangeUnit { get; set; }
        public bool ReadOnly { get; set; }
        public bool OutlookOnly { get; set; }
        public OutlookCustomPropertyType CustomPropertyType { get; set; }
        /// <summary>
        /// Name of the database table
        /// </summary>
        public string TableName { get; set; } // TableName (.)

        /// <summary>
        /// Name of the database column 
        /// </summary>
        public string ColumnName { get; set; } // ColumnName (.)
    } // class DataMappingAttribute (.)
}
